﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="Admin.aspx.cs" Inherits="BFOAuction.Admin1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <%--<p>
    <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
        AllowSorting="True" AutoGenerateColumns="False" CellPadding="4" 
        DataKeyNames="MaKH" DataSourceID="SqlDataSource1" ForeColor="#333333" 
        GridLines="None">
        <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        <Columns>
            <asp:BoundField DataField="MaKH" HeaderText="MaKH" 
                ReadOnly="True" SortExpression="MaKH" InsertVisible="False" />
            <asp:BoundField DataField="TenDangNhap" HeaderText="TenDangNhap" 
                SortExpression="TenDangNhap" />
            <asp:BoundField DataField="MatKhau" HeaderText="MatKhau" 
                SortExpression="MatKhau" />
        </Columns>
        <EditRowStyle BackColor="#999999" />
        <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
        <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
        <SortedAscendingCellStyle BackColor="#E9E7E2" />
        <SortedAscendingHeaderStyle BackColor="#506C8C" />
        <SortedDescendingCellStyle BackColor="#FFFDF8" />
        <SortedDescendingHeaderStyle BackColor="#6F8DAE" />
    </asp:GridView>
</p>
<p>
    <asp:SqlDataSource ID="SqlDataSource1" runat="server" 
        ConnectionString="<%$ ConnectionStrings:QLDauGiaConnectionString %>" 
        DeleteCommand="DELETE FROM [Account] WHERE [TenDangNhap] = @TenDangNhap" 
        InsertCommand="INSERT INTO [Account] ([TenDangNhap], [MatKhau]) VALUES (@TenDangNhap, @MatKhau)" 
        SelectCommand="SELECT * FROM [Account]" 
        
        
        UpdateCommand="UPDATE [Account] SET [MaKH] = @MaKH, [MatKhau] = @MatKhau WHERE [TenDangNhap] = @TenDangNhap">
        <DeleteParameters>
            <asp:Parameter Name="TenDangNhap" Type="String" />
        </DeleteParameters>
        <InsertParameters>
            <asp:Parameter Name="TenDangNhap" Type="String" />
            <asp:Parameter Name="MatKhau" Type="String" />
        </InsertParameters>
        <UpdateParameters>
            <asp:Parameter Name="MaKH" Type="Int32" />
            <asp:Parameter Name="MatKhau" Type="String" />
            <asp:Parameter Name="TenDangNhap" Type="String" />
        </UpdateParameters>
    </asp:SqlDataSource>
</p>--%>
</asp:Content>
